package com.aios.util;

import java.util.Calendar;

import com.aios.entity.Controller;
import com.aios.entity.DaySchedule;
import com.aios.entity.Switch;
import com.aios.entity.SwitchPanel;
import com.aios.entity.SystemUser;
import com.aios.entity.SystemUserHasController;
import com.aios.entity.Timer;
import com.aios.entity.UsageData;

public class GuidGenerator {

	private static final int KEY_LENGTH = 32;

	public static String systemUserKey() {

		return (SystemUser.CLASS_KEY + SystemUser.TABLE_KEY + Calendar
				.getInstance().getTimeInMillis());
	}

	public static String timerKey() {

		return (Timer.CLASS_KEY + Timer.TABLE_KEY + Calendar
				.getInstance().getTimeInMillis());
	}
	public static String controllerKey() {

		return (Controller.CLASS_KEY + Controller.TABLE_KEY + Calendar
				.getInstance().getTimeInMillis());
	}
	public static String dayScheduleKey(){
		return (DaySchedule.CLASS_KEY + DaySchedule.TABLE_KEY + Calendar
				.getInstance().getTimeInMillis());
	}
	
	public static String switchKey() {
		return (Switch.CLASS_KEY + Switch.TABLE_KEY + Calendar.getInstance().getTimeInMillis());
	}

	public static void main(String[] args) {
		System.out.println(GuidGenerator.systemUserKey());
	}


	public static String systemUserHasControllerKey() {
		return (SystemUserHasController.CLASS_KEY + SystemUserHasController.TABLE_KEY + Calendar
				.getInstance().getTimeInMillis());
	}

	public static String switchPanelKey() {
		return (SwitchPanel.CLASS_KEY + SwitchPanel.TABLE_KEY + Calendar.getInstance().getTimeInMillis());
	}
	
	public static String usageDataKey() {
		return (UsageData.CLASS_KEY+ UsageData.TABLE_KEY + Calendar.getInstance().getTimeInMillis());
	}

}
